home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 4 / Example 4.9 / mesh.h < prev   
Encoding:
C/C++ Source or Header  |  2006-06-28  |  456 b   |  27 lines

  1. #ifndef _MESH
  2. #define _MESH
  3.  
  4. #include <d3dx9.h>
  5. #include <vector>
  6.  
  7. class MESH
  8. {
  9.     public:
  10.  
  11.         MESH();
  12.         MESH(char fName[], IDirect3DDevice9* Dev);
  13.         ~MESH();
  14.         HRESULT Load(char fName[], IDirect3DDevice9* Dev);
  15.         void Render();
  16.         void Release();
  17.  
  18.     private:
  19.  
  20.         IDirect3DDevice9 *m_pDevice;
  21.         ID3DXMesh *m_pMesh;
  22.         std::vector<IDirect3DTexture9*> m_textures;
  23.         std::vector<D3DMATERIAL9> m_materials;
  24.         D3DMATERIAL9 m_white;
  25. };
  26.  
  27. #endif